package com.mzj.saas.mservice.code.repository;

import com.mzj.saas.mservice.code.entity.BusinessCode;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

public interface BusinessCodeRepository extends PagingAndSortingRepository<BusinessCode, Long>,
		JpaSpecificationExecutor<BusinessCode>, JpaRepository<BusinessCode, Long> {

	BusinessCode findByCode(String code);
	
	BusinessCode findByContractNubmerAndType(String contractNubmer, Integer type);
}
